#include <iostream>
using namespace std;

class Integer {
  private:
    int a;

  public:
    Integer(int x = 0) { a = x; }
    operator int() { return a; }
    Integer operator+(const Integer &i) const {
        return a + i.a; // 返回和
    }
};

int main() {
    Integer a(2), b(3), c;
    c = a + b;
    cout << c << endl;

    return 0;
}
